#ifndef A873123C_10D8_4317_B0EA_040C64BA5AA0
#define A873123C_10D8_4317_B0EA_040C64BA5AA0

/// @brief wifi初始化
void my_wifi_init();

/// @brief 连接指定wifi
/// @param ssid wifi名称
/// @param pwd wifi密码
void my_wifi_connect(char* ssid,char*pwd);

/// @brief 设置wifi断开回调
/// @param cb 
void my_wifi_set_disconnect_cb(void(*cb)());

/// @brief 设置wifi连接回调
/// @param cb 
void my_wifi_set_connect_cb(void(*cb)());

/// @brief wifi是否连接
/// @return 
int my_wifi_is_connected();


/// @brief 当前连接的wifi名称
/// @return 
char *my_wifi_ssid_now();


/// @brief 开始wifi扫描
/// @param scan_done_cb 
void my_wifi_start_scan(void (*scan_done_cb)(char* ssid));

/// @brief 停止wifi扫描
void my_wifi_stop_scan();

/// @brief 获取wifi扫描结果
/// @param i 
/// @return 
char* my_wifi_get_scan_result(int i);

/// @brief 开始smartconfig
/// @param ok 
/// @param fail 
void my_wifi_start_smartconfig(void(*ok)(), void(*fail)());

/// @brief 关闭smartconfig
void my_wifi_stop_smartconfig();
#endif /* A873123C_10D8_4317_B0EA_040C64BA5AA0 */
